#ifndef LBUILDVERSION_H
#define LBUILDVERSION_H

#include <QString>

class LBuildVersion {

public:
    explicit LBuildVersion();

    int generateVersion(const int verMajor,
                        const int verMinor,
                        QString svnRootDir,
                        QString versionFilePath);


private:
    int getBuildNumber();
    int getSubversionRevision(QString dirPrj);
    int writeFile(const QString& fileName,
                  const int major,
                  const int minor,
                  const int revision,
                  const int build);

    void setVersionMajor(const int ver);
    void setVersionMinor(const int ver);

    int major;
    int minor;
    int revision;
    int build;

};

#endif // LBUILDVERSION_H
